package com.guyu.plugin.mail.utils;


import com.guyu.common.core.exception.BaseException;
import com.guyu.common.core.exception.code.ErrorCodeEnum;

import java.io.Serial;

/**
 * 邮件异常
 */
public class MailException extends BaseException {
    @Serial
    private static final long serialVersionUID = 1L;

    public MailException(String message) {
        super(ErrorCodeEnum.MAIL_ERROR.getCode(), message);
    }

    public MailException(String message, Throwable e) {
        super(ErrorCodeEnum.MAIL_ERROR.getCode(), message, e);
    }

    public MailException(Throwable e) {
        this(e.getMessage(), e);
    }


}
